import instance from "@/util/request";
// 定义接口请求
//查询UserInfoList

export function getAllGoods (page){
	return instance({
	method:'GET',
	url:'/goods/selectGoods/all',
	params:{
		pageNum:page.value.pageNum,
		pageSize: page.value.pageSize
	}
	})
}
export function getTypeGoods(tpage){
	console.log('tpage请求：：：：：：',tpage)
	return instance({
	method:'GET',
	url:'/goods/selectGoods/type',
	params:{
		typeId: tpage.value.typeId,
		pageNum:tpage.value.pageNum,
		pageSize: tpage.value.pageSize
	}
	})
}
export function getGoodsDetail (productId:number){
	return instance({
	method:'GET',
	url:'/goods/detail',
	params:{
		productId:productId
	}
	})
	
}